package com.funds.domain;

import java.io.Serializable;

public class GoodsType implements Serializable {
	/**
	 * ID
	 */
	private int id;
	
	/**
	 * 类型名称
	 */
	private String name;
	
	/**
	 * 描述
	 */
	private String dsc;

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDsc() {
		return dsc;
	}

	public void setDsc(String dsc) {
		this.dsc = dsc;
	}

	@Override
	public String toString() {
		return "GoodsType [dsc=" + dsc + ", id=" + id + ", name=" + name + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GoodsType other = (GoodsType) obj;
		if (id != other.id)
			return false;
		return true;
	}

}
